#include<iostream>
#include<iomanip>
using namespace std;
bool equal(double x1, double x2) {
	if (abs(x1 - x2) < 1e-7) {
		return true;
	}
	return false;
}
double Fun(double x, int n)
{
	if (equal(x, 0.0) && n < 0) {
		return 0.0;
	}
	bool flag = true;
	if (n < 0) {
		flag = false;
	}
	int new_n = n > 0 ? n : (-n);
	double result = 1;
	for (int i = 1; i <= new_n; i++) {
		result *= x;
	}
	if (!flag) {
		return 1.0 / result;
	}
	return result;
}
int main()
{
	double x;
	int n;
	cin >> x >> n;
	double ret = Fun(x, n);
	cout << fixed << setprecision(4) << ret << endl;
	return 0;
}